<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <title>Meeting会议管理系统</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/styles/common.css"/>
    <style type="${pageContext.request.contextPath}/text/css">
    </style>
</head>
<body>
<%@ include file="top.jsp" %>
<div class="page-body">
    <%@ include file="leftMenu.jsp" %>
    <div class="page-content">
        <div class="content-nav">
            人员管理 > 注册审批
        </div>
        <table class="listtable">
            <caption>所有待审批注册信息：</caption>
            <tr class="listheader">
                <th>姓名</th>
                <th>账号名</th>
                <th>联系电话</th>
                <th>电子邮件</th>
                <th>操作</th>
            </tr>
            <c:forEach items="${emp }" var="emp">
                <tr class="listheader">
                    <td>${emp.employeeName}</td>
                    <td>${emp.username}</td>
                    <td>${emp.phone}</td>
                    <td>${emp.email}</td>
                    <td>
                        <a type="button" class="clickbutton"
                           href="${pageContext.request.contextPath}/passEmp?employeeid=${emp.employeeId}">通过</a>
                        <a type="button" class="clickbutton"
                           href="${pageContext.request.contextPath}/delEmp?employeeid=${emp.employeeId}">不通过</a>
                    </td>
                </tr>
            </c:forEach>


            <%--            <#if emps??>--%>
            <%--                <#list emps as emp>--%>
            <%--                    <tr>--%>
            <%--                        <td>${emp.employeeName}</td>--%>
            <%--                        <td>${emp.username}</td>--%>
            <%--                        <td>${emp.phone}</td>--%>
            <%--                        <td>${emp.email}</td>--%>
            <%--                        <td>--%>
            <%--                            <a type="button" class="clickbutton"--%>
            <%--                               href="/admin/updatestatus?employeeid=${emp.employeeId}&status=1">通过</a>--%>
            <%--                            <a type="button" class="clickbutton"--%>
            <%--                               href="/admin/updatestatus?employeeid=${emp.employeeId}&status=2">不通过</a>--%>
            <%--                        </td>--%>
            <%--                    </tr>--%>
            <%--                </#list>--%>
            <%--            </#if>--%>
        </table>
    </div>
</div>
<%@include file="down.jsp"%>
</body>
</html>